package com.rh.bmw4s.js;

import android.content.Context;
import android.content.Intent;
import android.webkit.JavascriptInterface;

import com.rh.bmw4s.ui.CategoryActivity;

/**
 * Created by Administrator on 2017/9/25.
 */

public class BrandJs extends Object {
    private Context context;

    public BrandJs(Context context) {
        this.context = context;
    }

    @JavascriptInterface
    public void toBrand(){
        context.startActivity(new Intent(context, CategoryActivity.class));
    }
}
